package com.cheng.io;

import java.io.*;

public class InputStreamTest01 {
    public static void main(String[] args) {
        try (
                Reader reader = new FileReader("io/resources/test02.txt");
        ) {
            char[] chars = new char[512];
            int readCount;
            while ((readCount = reader.read(chars)) != -1) {
                System.out.print(new String(chars, 0, readCount));
            }


        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
